package com.xneure.code.log;

import java.io.Closeable;
import com.xneure.code.intf.LogOptimize;
import com.xneure.utils.bean.Caller;

public interface ILog extends Closeable {
	enum Level {
		INFO, WARN, DEBUG, ERROR, ALL
	}

	void addWatcher(LogWatcher filter);

	public void debug(Object log);

	public void error(Object log);

	public void info(Object log);

	public void warn(Object log);

	public void print(Level l, Object log);

	public Caller getCaller();
	public void log(Level level,LogOptimize fun);
	public String useClass();
	public boolean isSysHandle();
	public boolean isSysPrint();
	public void setSysHandle(boolean print);
}
